<?php
	require('calculate.php');
	require('error_manager.php');

$inputPOST = json_decode(file_get_contents("php://input"), true);

$output = null;
switch($inputPOST['Action'])
{
	case "calculate":
		$output = calculateTaxData($inputPOST['Content']);
		break;

	case "funTaxFact":
		break;

	default:
		$output = ACTUALLY_IS_DOLAN(0, "gooby plz");
		break;
}

if (isset($output) && $output != null)
	echo $output;
?>